package com.ctshk.rpc.user.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @description
 * @author 谢诗宏
 * @date 2020/12/15
 */
@Data
@ApiModel
public class LoginReq {

    @NotBlank(message = "請輸入用戶名")
    @ApiModelProperty(name = "username", value = "账号", required = true)
    private String username;
    @NotBlank(message = "請輸入密碼")
    @ApiModelProperty(name = "password", value = "密码", required = true)
    private String password;

}
